From: Florian Müllner Date: Thu, 9 Mar 2017 14:42:36 +0000 (+0100) Subject: messageTray: Use correct monitor for fullscreen logic X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~458 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=742155c3846b250b2c5a13a62b87b81394374580;p=gnome-shell.git messageTray: Use correct monitor for fullscreen logic For most notifications, banners are suppressed while the monitor that is used to display banners is in fullscreen. With the old message tray at the bottom, this used to be the bottom-most monitor, but nowadays it's always the primary one, so update the corresponding code to use the correct monitor. https://bugzilla.gnome.org/show_bug.cgi?id=779819 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 32e3c4c76..0c7a5e4cd 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1231,7 +1231,7 @@ const MessageTray = new Lang.Class({ if (this._notificationState == State.HIDDEN) { let nextNotification = this._notificationQueue[0] || null; if (hasNotifications && nextNotification) { - let limited = this._busy || Main.layoutManager.bottomMonitor.inFullscreen; + let limited = this._busy || Main.layoutManager.primaryMonitor.inFullscreen; let showNextNotification = (!limited || nextNotification.forFeedback || nextNotification.urgency == Urgency.CRITICAL); if (showNextNotification) this._showNotification();